package com.kaiyidiannao.model.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;

public class AuctionDetail implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -7027629825667840743L;
    private String itemid;
    private String title;
    private String currprice;
    private String price;
    private String count;
    private int people;
    private long totime;
    private String introduce;
    private String content;
    private boolean is_fav; //收藏
    private boolean is_praise;//点赞
    private String endbidder; //最后一个加价人，""（空串）表示没有加价人
    private String[] picture;
    private String addlimit;
    private String bidders;
    private String status;
    private String catid;
    private String username;

    public ArrayList<String> getPicture2() {
        ArrayList<String> arrayList = new ArrayList<String>();
        for (int i = 0; picture != null && i < picture.length; ++i) {
            arrayList.add(picture[i]);
        }
        return arrayList;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCatid() {
        return catid;
    }

    public void setCatid(String catid) {
        this.catid = catid;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getBidders() {
        return bidders;
    }

    public void setBidders(String bidders) {
        this.bidders = bidders;
    }

    public String getAddlimit() {
        return addlimit;
    }

    public void setAddlimit(String addlimit) {
        this.addlimit = addlimit;
    }

    public String getItemid() {
        return itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = itemid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCurrprice() {
        return currprice;
    }

    public void setCurrprice(String currprice) {
        this.currprice = currprice;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public int getPeople() {
        return people;
    }

    public void setPeople(int people) {
        this.people = people;
    }

    public long getTotime() {
        return totime;
    }

    public void setTotime(long totime) {
        this.totime = totime;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isIs_fav() {
        return is_fav;
    }

    public void setIs_fav(boolean is_fav) {
        this.is_fav = is_fav;
    }

    public boolean isIs_praise() {
        return is_praise;
    }

    public void setIs_praise(boolean is_praise) {
        this.is_praise = is_praise;
    }

    public String getEndbidder() {
        return endbidder;
    }

    public void setEndbidder(String endbidder) {
        this.endbidder = endbidder;
    }

    public String[] getPicture() {
        return picture;
    }

    public void setPicture(String[] picture) {
        this.picture = picture;
    }

    @Override
    public String toString() {
        return "AuctionDetail{" +
                "itemid='" + itemid + '\'' +
                ", title='" + title + '\'' +
                ", currprice='" + currprice + '\'' +
                ", price='" + price + '\'' +
                ", count='" + count + '\'' +
                ", people=" + people +
                ", totime=" + totime +
                ", introduce='" + introduce + '\'' +
                ", content='" + content + '\'' +
                ", is_fav=" + is_fav +
                ", is_praise=" + is_praise +
                ", endbidder='" + endbidder + '\'' +
                ", picture=" + Arrays.toString(picture) +
                '}';
    }
}